<?php $this -> load -> view('adminx/header'); ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
	<!-- BEGIN SIDEBAR -->
	<?php $this -> load -> view('adminx/mune'); ?>
	<!-- END SIDEBAR -->
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- /.modal -->
			<h3 class="page-title"> <?php echo $title; ?> <small><?php echo $en; ?></small></h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="/adminx">首页</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#"><?php echo $title; ?></a>
					</li>
				</ul>
			</div>
			<!-- END PAGE HEADER-->
			<div class="clearfix"></div>
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<!-- BEGIN REGIONAL STATS PORTLET-->
		<div class="panel panel-default">
			<div class="panel-heading">
				 会员增长统计
			</div>
			<div class="panel-body">
				<form role="form" class="form-inline" method="post">
					<div class="input-group" style="margin-bottom: 10px;max-width: 250px;float: left;margin-right: 10px;">
						<input type="text" class="form-control form_datetimex"  id="tj_memberx_day1" name="tj_memberx_day1" value="<?php echo date('Y-m-d',strtotime('-7day')); ?>">
                        <span class="input-group-btn">
                          <button class="btn btn-default" type="button">-</button>
                        </span>
                        <input type="text" class="form-control form_datetimex"  id="tj_memberx_day2" name="tj_memberx_day2" value="<?php echo date('Y-m-d'); ?>">
                    </div>
					<button  type="button" onclick="tj_memberx()" class="btn blue">
						检索
					</button>
				</form>
				<p>
					<div id="memberx" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="sex" style=" min-width:300px; margin: 0 auto"></div>
				</p>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">
				 订单统计
			</div>
			<div class="panel-body">
				<form role="form" class="form-inline" method="post">
					<div class="input-group" style="margin-bottom: 10px;max-width: 250px;float: left;margin-right: 10px;">
						<input type="text" class="form-control form_datetimex"  id="tj_bill_day1" name="tj_bill_day1" value="<?php echo date('Y-m-d',strtotime('-7day')); ?>">
                        <span class="input-group-btn">
                          <button class="btn btn-default" type="button">-</button>
                        </span>
                        <input type="text" class="form-control form_datetimex"  id="tj_bill_day2" name="tj_bill_day2" value="<?php echo date('Y-m-d'); ?>">
                    </div>
					<button  type="button" onclick="tj_bill()" class="btn blue">
						检索
					</button>
				</form>
				<p>
					<div id="bill" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb-2" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb-5" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb1" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb4" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb5" style=" min-width:300px; margin: 0 auto"></div>
				</p>
				<p>
					<div id="jb6" style=" min-width:300px; margin: 0 auto"></div>
				</p>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">
				 日志统计
			</div>
			<div class="panel-body">
				<form role="form" class="form-inline" method="post">
					<div class="input-group" style="margin-bottom: 10px;max-width: 250px;float: left;margin-right: 10px;">
						<input type="text" class="form-control form_datetimex"  id="tj_log_day1" name="tj_log_day1" value="<?php echo date('Y-m-d',strtotime('-7day')); ?>">
                        <span class="input-group-btn">
                          <button class="btn btn-default" type="button">-</button>
                        </span>
                        <input type="text" class="form-control form_datetimex"  id="tj_log_day2" name="tj_log_day2" value="<?php echo date('Y-m-d'); ?>">
                    </div>
					<button  type="button" onclick="tj_log()" class="btn blue">
						检索
					</button>
				</form>
				<p>
					<div id="logx" style=" min-width:300px; margin: 0 auto"></div>
				</p>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">
				 数量统计
			</div>
			<div class="panel-body">
				<ul class="list-group">
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-user"></span>
                      <span class="badge danger"><?php echo $member;?></span>
                      会员数量
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-list-alt"></span>
                      <span class="badge"><?php echo $wz; ?></span>
                      文章数量
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-gift"></span>
                      <span class="badge"><?php echo $sp; ?></span>
                      商品
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-shopping-cart"></span>
                      <span class="badge"><?php echo $bill; ?></span>
                      订单
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-unchecked"></span>
                      <span class="badge"><?php echo $log; ?></span>
                      日志
                   </li>
                </ul>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">
				 现金统计
			</div>
			<div class="panel-body">
				<ul class="list-group">
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-star"></span>
                      <span class="badge danger"><?php echo $this->pub->get_jb_tj(-1);?></span>
                      提现金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-shopping-cart"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(-2);?></span>
                      购物金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-gift"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(-3);?></span>
                      活动金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-bookmark"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(-4);?></span>
                      竞拍金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-envelope"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(-5);?></span>
                      红包金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-euro"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(1);?></span>
                      充值金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-user"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(2);?></span>
                     粉丝奖励金额
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-tag"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(3);?></span>
                      购物礼券
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-unchecked"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(4);?></span>
                      销售收益
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-tags"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(5);?></span>
                      货款收益
                   </li>
                   <li class="list-group-item">
                   	  <span class="glyphicon glyphicon-share"></span>
                      <span class="badge"><?php echo $this->pub->get_jb_tj(6);?></span>
                      分享收益
                   </li>
                </ul>
			</div>
		</div>

					<!-- END REGIONAL STATS PORTLET-->
				</div>
			</div>
		</div>
	</div>
	
	<!-- BEGIN QUICK SIDEBAR -->
	<?php $this -> load -> view('adminx/lt'); ?>
	<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php $this -> load -> view('adminx/footer'); ?>
<script src="/mex/global/plugins/tj/highcharts.js"></script>
<script src="/mex/lance/tj.js"></script>